package com.jh.paymentchannel.pojo;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;

@Entity
@Table(name = "t_sf_auth")
public class SFAuth implements Serializable {
	// notNull
	@Id
	@Column(name = "id")
	private int id;
	// 法人姓名notNull
	@Column(name = "name")
	private String name;
	// 法人电话notNull
	@Column(name = "phone")
	private String phone;
	// 结算银行账号notNull
	@Column(name = "acc_no")
	private String accNo;
	// 结算银行名称notNull
	@Column(name = "acc_bank_name")
	private String accBankName;
	// 结算银行联行号notNull
	@Column(name = "acc_bank_no")
	private String accBankNo;
	// 银行预留手机号notNull
	@Column(name = "bank_phone")
	private String bankPhone;
	// 身份证notNull
	@Column(name = "card")
	private String card;
	// 接入机构的商户编码notNull
	@Column(name = "mrt_no")
	private String mrtNo;
//	数据加密密钥
	@Column(name="data_key")
	private String dataKey;
	// 商户交易密钥
	@Column(name = "secret_key")
	private String secretKey;
//	业务类型移动支付,1开通0未开通
	@Column(name = "type_mp")
	@JsonProperty(value = "typeMp")
	private String typeMp;
//	业务类型同名快捷,1开通0未开通
	@Column(name = "type_epays")
	@JsonProperty(value = "typeEpays")
	private String typeEpays;
	// 结算费率notNull
	@Column(name = "settle_rate")
	private String settleRate;
	// 额外手续费
	@Column(name = "extra_rate_type")
	@JsonProperty(value = "extraRateType")
	private String extraRateType;
	// 额外费率
	@Column(name = "extra_rate")
	@JsonProperty(value = "extraRate")
	private String extraRate;
	// 创建时间notNull
	@Column(name = "create_time")
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	
	public String getSecretKey() {
		return secretKey;
	}

	public void setSecretKey(String secretKey) {
		this.secretKey = secretKey;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getAccNo() {
		return accNo;
	}

	public void setAccNo(String accNo) {
		this.accNo = accNo;
	}

	public String getAccBankName() {
		return accBankName;
	}

	public void setAccBankName(String accBankName) {
		this.accBankName = accBankName;
	}

	public String getAccBankNo() {
		return accBankNo;
	}

	public void setAccBankNo(String accBankNo) {
		this.accBankNo = accBankNo;
	}

	public String getBankPhone() {
		return bankPhone;
	}

	public void setBankPhone(String bankPhone) {
		this.bankPhone = bankPhone;
	}

	public String getCard() {
		return card;
	}

	public void setCard(String card) {
		this.card = card;
	}

	public String getMrtNo() {
		return mrtNo;
	}

	public void setMrtNo(String mrtNo) {
		this.mrtNo = mrtNo;
	}

	public String getSettleRate() {
		return settleRate;
	}

	public void setSettleRate(String settleRate) {
		this.settleRate = settleRate;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getTypeMp() {
		return typeMp;
	}

	public void setTypeMp(String typeMp) {
		this.typeMp = typeMp;
	}

	public String getTypeEpays() {
		return typeEpays;
	}

	public void setTypeEpays(String typeEpays) {
		this.typeEpays = typeEpays;
	}

	public String getExtraRateType() {
		return extraRateType;
	}

	public void setExtraRateType(String extraRateType) {
		this.extraRateType = extraRateType;
	}

	public String getExtraRate() {
		return extraRate;
	}

	public void setExtraRate(String extraRate) {
		this.extraRate = extraRate;
	}

	public String getDataKey() {
		return dataKey;
	}

	public void setDataKey(String dataKey) {
		this.dataKey = dataKey;
	}


}
